﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001325 RID: 4901
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeAssistRewardScRsp : IMessage<TakeAssistRewardScRsp>, IMessage, IEquatable<TakeAssistRewardScRsp>, IDeepCloneable<TakeAssistRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003DD3 RID: 15827
		// (get) Token: 0x0600DB61 RID: 56161 RVA: 0x0024B9B7 File Offset: 0x00249BB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeAssistRewardScRsp> Parser
		{
			get
			{
				return TakeAssistRewardScRsp._parser;
			}
		}

		// Token: 0x17003DD4 RID: 15828
		// (get) Token: 0x0600DB62 RID: 56162 RVA: 0x0024B9BE File Offset: 0x00249BBE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeAssistRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003DD5 RID: 15829
		// (get) Token: 0x0600DB63 RID: 56163 RVA: 0x0024B9D0 File Offset: 0x00249BD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeAssistRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DB64 RID: 56164 RVA: 0x0024B9D7 File Offset: 0x00249BD7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeAssistRewardScRsp()
		{
		}

		// Token: 0x0600DB65 RID: 56165 RVA: 0x0024B9EC File Offset: 0x00249BEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeAssistRewardScRsp(TakeAssistRewardScRsp other) : this()
		{
			this.mJKNGJCJAIN_ = other.mJKNGJCJAIN_.Clone();
			this.retcode_ = other.retcode_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DB66 RID: 56166 RVA: 0x0024BA49 File Offset: 0x00249C49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeAssistRewardScRsp Clone()
		{
			return new TakeAssistRewardScRsp(this);
		}

		// Token: 0x17003DD6 RID: 15830
		// (get) Token: 0x0600DB67 RID: 56167 RVA: 0x0024BA51 File Offset: 0x00249C51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ILFBFGAEPAK> MJKNGJCJAIN
		{
			get
			{
				return this.mJKNGJCJAIN_;
			}
		}

		// Token: 0x17003DD7 RID: 15831
		// (get) Token: 0x0600DB68 RID: 56168 RVA: 0x0024BA59 File Offset: 0x00249C59
		// (set) Token: 0x0600DB69 RID: 56169 RVA: 0x0024BA61 File Offset: 0x00249C61
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003DD8 RID: 15832
		// (get) Token: 0x0600DB6A RID: 56170 RVA: 0x0024BA6A File Offset: 0x00249C6A
		// (set) Token: 0x0600DB6B RID: 56171 RVA: 0x0024BA72 File Offset: 0x00249C72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x0600DB6C RID: 56172 RVA: 0x0024BA7B File Offset: 0x00249C7B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeAssistRewardScRsp);
		}

		// Token: 0x0600DB6D RID: 56173 RVA: 0x0024BA8C File Offset: 0x00249C8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeAssistRewardScRsp other)
		{
			return other != null && (other == this || (this.mJKNGJCJAIN_.Equals(other.mJKNGJCJAIN_) && this.Retcode == other.Retcode && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DB6E RID: 56174 RVA: 0x0024BAF0 File Offset: 0x00249CF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.mJKNGJCJAIN_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DB6F RID: 56175 RVA: 0x0024BB53 File Offset: 0x00249D53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DB70 RID: 56176 RVA: 0x0024BB5B File Offset: 0x00249D5B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DB71 RID: 56177 RVA: 0x0024BB64 File Offset: 0x00249D64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			this.mJKNGJCJAIN_.WriteTo(ref output, TakeAssistRewardScRsp._repeated_mJKNGJCJAIN_codec);
			if (this.reward_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.Reward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DB72 RID: 56178 RVA: 0x0024BBD0 File Offset: 0x00249DD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.mJKNGJCJAIN_.CalculateSize(TakeAssistRewardScRsp._repeated_mJKNGJCJAIN_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DB73 RID: 56179 RVA: 0x0024BC3C File Offset: 0x00249E3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeAssistRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.mJKNGJCJAIN_.Add(other.mJKNGJCJAIN_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DB74 RID: 56180 RVA: 0x0024BCB5 File Offset: 0x00249EB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DB75 RID: 56181 RVA: 0x0024BCC0 File Offset: 0x00249EC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 42U)
					{
						if (num != 122U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.reward_ == null)
							{
								this.Reward = new ItemList();
							}
							input.ReadMessage(this.Reward);
						}
					}
					else
					{
						this.mJKNGJCJAIN_.AddEntriesFrom(ref input, TakeAssistRewardScRsp._repeated_mJKNGJCJAIN_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005725 RID: 22309
		private static readonly MessageParser<TakeAssistRewardScRsp> _parser = new MessageParser<TakeAssistRewardScRsp>(() => new TakeAssistRewardScRsp());

		// Token: 0x04005726 RID: 22310
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005727 RID: 22311
		public const int MJKNGJCJAINFieldNumber = 5;

		// Token: 0x04005728 RID: 22312
		private static readonly FieldCodec<ILFBFGAEPAK> _repeated_mJKNGJCJAIN_codec = FieldCodec.ForMessage<ILFBFGAEPAK>(42U, ILFBFGAEPAK.Parser);

		// Token: 0x04005729 RID: 22313
		private readonly RepeatedField<ILFBFGAEPAK> mJKNGJCJAIN_ = new RepeatedField<ILFBFGAEPAK>();

		// Token: 0x0400572A RID: 22314
		public const int RetcodeFieldNumber = 1;

		// Token: 0x0400572B RID: 22315
		private uint retcode_;

		// Token: 0x0400572C RID: 22316
		public const int RewardFieldNumber = 15;

		// Token: 0x0400572D RID: 22317
		private ItemList reward_;
	}
}
